package com.fancy.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_private_message")
public class PrivateMessage {
    @TableId(value = "message_id", type = IdType.AUTO)
    private Long messageId;
    private Long senderId;
    private Long receiverId;
    private String content;
    private Integer messageType;
    private Boolean isRead;
    private LocalDateTime createTime;
    private LocalDateTime readTime;
}

